package com.ps.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ps.property.TOtherLike;

import java.util.List;

/**
 * @author gt
 * @类说明：点赞逻辑层
 * @date 2020/10/27 19:22
 */
public interface LikeService {
    /**
     * 点赞新增
     * @param tOtherLike
     * @return -1为失败 1为成功
     */
    int likeAdd(TOtherLike tOtherLike);

    /**
     * 点赞分页查询
     * @param currentPage   当前页
     * @param pageSize      每页行数
     * @return
     */
    IPage<TOtherLike> likeQuery(int currentPage, int pageSize);

    /**
     * 根据点赞id查询点赞
     * @param likeId 点赞id
     * @return
     */
    TOtherLike likeQueryById(int likeId);

    /**
     * 点赞修改
     * @param tOtherLike
     * @return -1为失败 1为成功
     */
    int likeUpdate(TOtherLike tOtherLike);
}
